package com.woniu.apartment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 房间对象 tb_room
 *
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "Room", description = "房间")
public class Room implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 房间主键 */
    @ApiModelProperty("房间主键")
    private Long id;

    /** 房间号 */
    @Excel(name = "房间号")
    @ApiModelProperty("房间号")
    private String roomNo;

    /** 房型id */
    @Excel(name = "房型id")
    @ApiModelProperty("房型id")
    private Long apartLayoutId;

    /** 公寓id */
    @Excel(name = "公寓id")
    @ApiModelProperty("公寓id")
    private Long apartId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRoomNo(String roomNo)
    {
        this.roomNo = roomNo;
    }

    public String getRoomNo()
    {
        return roomNo;
    }
    public void setApartLayoutId(Long apartLayoutId)
    {
        this.apartLayoutId = apartLayoutId;
    }

    public Long getApartLayoutId()
    {
        return apartLayoutId;
    }
    public void setApartId(Long apartId)
    {
        this.apartId = apartId;
    }

    public Long getApartId()
    {
        return apartId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomNo", getRoomNo())
            .append("apartLayoutId", getApartLayoutId())
            .append("apartId", getApartId())
            .toString();
    }
}
